export const HOLD = 'Hold';
export const AMPLIFICATION = "Amplification";
export const MELT = "Melt";
export const INFINITE_HOLD = "Infinite Hold";
//  下拉菜单样式
export const MENU_STYLE = {
  textAlign: "center",
  width: "90px",
  border: "1px solid #213040",
  borderRadius: "5px",
  overflow: "hidden"
};
//  stages的数据结构
export const STAGES_TYPE = {
  hold: {
    state: HOLD,
    steps: [{
      temperature: 95.0,
      gradient: 0.5,
      time: 300,
      record: false,
      autoDelta: {
        checkAutoPauseBefore: false,
        checkAutoPauseAfter: false,
        checkAutoDeltaTemperature: false,
        autoDeltaTemperature: 0.5,
        checkAutoDeltaTime: false,
        autoDeltaTime: 0,
        checkRampRate: false,
        rampRate: 0.1
      },
      gradientDeltaTemperature: {
        checked: false,
        start: 65.0,
        end: 65.0
      }
    }],
    cycle: 1,
    hrMeltingCurveMode: false
  },
  amplificationCycle: {
    state: AMPLIFICATION,
    steps: [{
      temperature: 95.0,
      gradient: 0.5,
      time: 30,
      record: false,
      autoDelta: {
        checkAutoPauseBefore: false,
        checkAutoPauseAfter: false,
        checkAutoDeltaTemperature: false,
        autoDeltaTemperature: 0.5,
        checkAutoDeltaTime: false,
        autoDeltaTime: 0,
        checkRampRate: false,
        rampRate: 0.1
      },
      gradientDeltaTemperature: {
        checked: false,
        start: 95.0,
        end: 95.0
      }
    }, {
      temperature: 60.0,
      gradient: 0.5,
      time: 30,
      record: true,
      autoDelta: {
        checkAutoPauseBefore: false,
        checkAutoPauseAfter: false,
        checkAutoDeltaTemperature: false,
        autoDeltaTemperature: 0.5,
        checkAutoDeltaTime: false,
        autoDeltaTime: 0,
        checkRampRate: false,
        rampRate: 0.1
      },
      gradientDeltaTemperature: {
        checked: false,
        start: 95.0,
        end: 95.0
      }
    }],
    cycle: 40,
    hrMeltingCurveMode: false
  },
  melt: {
    state: MELT,
    steps: [{
      temperature: 60.0,
      gradient: 0.5,
      time: 60,
      record: false,
      autoDelta: {
        checkAutoPauseBefore: false,
        checkAutoPauseAfter: false,
        checkAutoDeltaTemperature: false,
        autoDeltaTemperature: 0.5,
        checkAutoDeltaTime: false,
        autoDeltaTime: 0,
        checkRampRate: false,
        rampRate: 0.1
      },
      gradientDeltaTemperature: {
        checked: false,
        start: 95.0,
        end: 95.0
      }
    }, {
      temperature: 95.0,
      gradient: 0.5,
      time: 60,
      record: true,
      autoDelta: {
        checkAutoPauseBefore: false,
        checkAutoPauseAfter: false,
        checkAutoDeltaTemperature: false,
        autoDeltaTemperature: 0.5,
        checkAutoDeltaTime: false,
        autoDeltaTime: 0,
        checkRampRate: false,
        rampRate: 0.1
      },
      gradientDeltaTemperature: {
        checked: false,
        start: 95.0,
        end: 95.0
      }
    }],
    cycle: 1,
    hrMeltingCurveMode: false
  },
  infiniteHold: {
    state: INFINITE_HOLD,
    steps: [{
      temperature: 4.0,
      gradient: 0.5,
      time: 1800,
      record: false,
      autoDelta: {
        checkAutoPauseBefore: false,
        checkAutoPauseAfter: false,
        checkAutoDeltaTemperature: false,
        autoDeltaTemperature: 0.5,
        checkAutoDeltaTime: false,
        autoDeltaTime: 0,
        checkRampRate: false,
        rampRate: 0.1
      },
      gradientDeltaTemperature: {
        checked: false,
        start: 95.0,
        end: 95.0
      }
    }],
    cycle: 1,
    hrMeltingCurveMode: false
  }
};
//  canvas初始化参数
export const CANVAS_CONFIG = {
  widthLeft: 130,
  widthRight: 130,
  paddingBottom: 10,
  maxY: 110,
  lineColor: "#B78533",
  drawStepSeparationLineMode: true,
  stepSeparationLineColor: "#aaa",
  stageSeparationLineColor: "#aaa"
};
//  Gradient温度条
export const TEMPERATURE_COLOR_BAR = [{
  value: "",
  color: "#2867FA"
}, {
  value: "",
  color: "#4861E5"
}, {
  value: "",
  color: "#5B5CD7"
}, {
  value: "",
  color: "#7157C4"
}, {
  value: "",
  color: "#8053B7"
}, {
  value: "",
  color: "#944EA3"
}, {
  value: "",
  color: "#A9498F"
}, {
  value: "",
  color: "#BD4477"
}, {
  value: "",
  color: "#CA4268"
}, {
  value: "",
  color: "#DD3D4F"
}, {
  value: "",
  color: "#ED3A36"
}, {
  value: "",
  color: "#FC3719"
}];

